package com.industrial.governance.controller;

import com.industrial.common.core.web.domain.AjaxResult;
import com.industrial.governance.domain.server.Server;
import com.industrial.governance.service.ISystemMonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 系统监控
 * @author sangguangcan
 */
@RestController
@RequestMapping("/system/mon")
public class SystemMonController {

    @Autowired
    private ISystemMonService systemMonService;

    @GetMapping("/monitor/server")
    public AjaxResult monitorServer() throws Exception {
        Server server = new Server();
        server.copyTo();
        return AjaxResult.success(server);
    }
}
